from math import *
a=[]
lens=int(input())
maxs=0
count=0
begin=0
for i in range(2,int(sqrt(lens))+1):
    n=lens
    count=0
    j=i
    while(n%j==0):
        n/=j
        j+=1
        count+=1
    if count>maxs:
        maxs=count
        begin=i
if maxs:
    print(maxs)
    print(begin,end='')
    for i in range(1,maxs):
        print('*',begin+i,end='')
 
